package com.example.portdemo.date.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.portdemo.date.model.ProductEntity;

import java.util.List;

@Dao
public interface ProductDao {
    @Insert
    void insertAll(ProductEntity... productEntities);

    @Query("SELECT * FROM products")
    List<ProductEntity> getProductsList();
}
